From 0df4283574d680187714d210c371926e73a7d923 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 11 Sep 2009 15:08:14 +0200 Subject: [PATCH] Don't use magic zero height/width argument to gdk_window_clear_area This is an undocumented feature that we stopped supporting, and anyway it likely only ever worked on X anyway. --- gtk/gtkclist.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 74302d1edb..f09d6b1371 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -5925,8 +5925,14 @@ draw_rows (GtkCList *clist, } if (!area) - gdk_window_clear_area (clist->clist_window, 0, - ROW_TOP_YPIXEL (clist, i), 0, 0); + { + int w, h, y; + gdk_drawable_get_size (GDK_DRAWABLE (clist->clist_window), &w, &h); + y = ROW_TOP_YPIXEL (clist, i); + gdk_window_clear_area (clist->clist_window, + 0, y, + w, h - y); + } } static void -- 2.30.2